
"""
Utilities
A pseudo-random collection of functions that the engine uses (or used), but
don't belong in any particular spot.
"""

def frange(stop, *p):
    start = 0.0
    step = 1.0
    if len(p) >= 1:
        start = stop
        stop = p[0]
    if len(p) >= 2:
        step = p[1]
    for n in xrange(0, int((stop-start)/step)):
        yield n*step + start

